 function queryScheduleForm(pageIndex,pageSize)
   {
          var url =base+"/scheduleList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#scheduleContent").load(url+"&"+ encodeURI(encodeURI(params)));
     }

     function addSchedule()
     {
          location.href=base + "/toAddSchedule.do";
     }
    
    function toEditSchedule(scheduleId)
    {
         location.href=base + "/toUpdateSchedule.do?scheduleId="+scheduleId;
    }
 
  function saveSchedule()
{   
         jQuery("#scheduleForm").ajaxSubmit(
           {
              type:"post",
              clearForm: true,        // 是否清空form  
              resetForm: true,       // 是否重置form  
              success:function(data)
              { 
                 var d= eval("("+data+")");
                 if(d.STATUS=="0")
                 {
                    location.href=base+"/scheduleMain.do";
                 }
                 else
                 {
                    alert(d.MSG);
                 }
              }
           }
          );
}


function changeScheduleExpression()
{
    var scheduleExpression=jQuery("#scheduleType").find("option:selected").val();
    if (scheduleExpression=="simple")
    {
         jQuery(":input",jQuery("#cornTr")).val("");
         jQuery("#cornTr").hide();
         jQuery("#simpleTr").show();
    }
    else
    {
         jQuery(":input",jQuery("#simpleTr")).val("");
         jQuery("#cornTr").show();
         jQuery("#simpleTr").hide();
    }
}